package MyFile;

import java.io.File;

public class demo1 {
    public static void main(String[] args) {
        File file = new File("D:\\software");
        String[] strings = file.list();
        for (String s:strings){
            System.out.println(s);
        }
    }
}
